<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>hybridMPIC: __Injector Class Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../logo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">hybridMPIC
   </div>
   <div id="projectbrief">A fully relativisitic 2d Particle-In-Cell(PIC) code, with explicit solver, MPI&amp;OpenMP support</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="../../annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="../../files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="../../annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="../../classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="../../functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Data Fields</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a>  </div>
  <div class="headertitle">
<div class="title">__Injector Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>粒子入射枪,可以指定粒子种类,和入射位置,目前尽采用四方形束流,以后会有更多的如高斯型等.  
 <a href="../../de/d11/class____Injector.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="../../d8/d94/injector_8h_source.html">injector.h</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for __Injector:</div>
<div class="dyncontent">
<div class="center"><img src="../../de/dfb/class____Injector__coll__graph.png" border="0" usemap="#____Injector_coll__map" alt="Collaboration graph"/></div>
<map name="____Injector_coll__map" id="____Injector_coll__map">
<area shape="rect" id="node2" href="../../d6/d9c/class____Vect2.html" title="__Vect2\&lt; long \&gt;" alt="" coords="5,5,124,32"/><area shape="rect" id="node3" href="../../d6/d9c/class____Vect2.html" title="__Vect2\&lt; double \&gt;" alt="" coords="148,5,280,32"/><area shape="rect" id="node4" href="../../da/d1a/class____Vect3.html" title="__Vect3\&lt; double \&gt;" alt="" coords="304,5,436,32"/></map>
<center><span class="legend">[<a href="../../graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ac808222e24a63590a2668d9d88fe4095"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac808222e24a63590a2668d9d88fe4095"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>__Injector</b> (int id, int <a class="el" href="../../de/d11/class____Injector.html#a4b73407b88f8100467ff96223daf0c16">species</a>, const double &amp;<a class="el" href="../../de/d11/class____Injector.html#a4c049ee41a130898e724da94f449ee2c">charge</a>, const double &amp;<a class="el" href="../../de/d11/class____Injector.html#afdfbc1a91bff64ae7d72ae5cf5d66523">mass</a>, <a class="el" href="../../d6/d9c/class____Vect2.html">__Vect2</a>&lt; long &gt; <a class="el" href="../../de/d11/class____Injector.html#af77a69bb48ddf567a7bf0bee02cd9ffb">position</a>, <a class="el" href="../../da/d1a/class____Vect3.html">__Vect3</a>&lt; double &gt; &amp;<a class="el" href="../../de/d11/class____Injector.html#aaf0d94bdf7f6bf59a56f9ad7335ee591">velocity</a>, const long &amp;<a class="el" href="../../de/d11/class____Injector.html#a648d24d44961e7a00296d743b155574c">total</a>, const double <a class="el" href="../../de/d11/class____Injector.html#a50f2657e4e2d8fe60619f8c7b9f23a8c">length</a>, const double <a class="el" href="../../de/d11/class____Injector.html#a3463b30b920b35418ded0984fe8ae387">flux</a>, const double &amp;<a class="el" href="../../de/d11/class____Injector.html#a4ecfae6ba4e8efc87b3ff5d3f20d3836">dx</a>, const double &amp;dy)</td></tr>
<tr class="separator:ac808222e24a63590a2668d9d88fe4095"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a921bbb4ec1562cfd7ab4e8ac76b619b8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a921bbb4ec1562cfd7ab4e8ac76b619b8"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d11/class____Injector.html#a921bbb4ec1562cfd7ab4e8ac76b619b8">trigger</a> (<a class="el" href="../../d9/d37/class____Simbox.html">__Simbox</a> &amp;mybox)</td></tr>
<tr class="memdesc:a921bbb4ec1562cfd7ab4e8ac76b619b8"><td class="mdescLeft">&#160;</td><td class="mdescRight">入射粒子加入到box中 <br /></td></tr>
<tr class="separator:a921bbb4ec1562cfd7ab4e8ac76b619b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace262b1a450c4360bfe681469b19b54d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ace262b1a450c4360bfe681469b19b54d"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>destroy</b> ()</td></tr>
<tr class="separator:ace262b1a450c4360bfe681469b19b54d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr class="memitem:ab4f5e8f04d7bef1be88ea9973db0fd8c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab4f5e8f04d7bef1be88ea9973db0fd8c"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>id</b></td></tr>
<tr class="separator:ab4f5e8f04d7bef1be88ea9973db0fd8c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b73407b88f8100467ff96223daf0c16"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4b73407b88f8100467ff96223daf0c16"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d11/class____Injector.html#a4b73407b88f8100467ff96223daf0c16">species</a></td></tr>
<tr class="memdesc:a4b73407b88f8100467ff96223daf0c16"><td class="mdescLeft">&#160;</td><td class="mdescRight">入射粒子种类 <br /></td></tr>
<tr class="separator:a4b73407b88f8100467ff96223daf0c16"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af77a69bb48ddf567a7bf0bee02cd9ffb"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af77a69bb48ddf567a7bf0bee02cd9ffb"></a>
<a class="el" href="../../d6/d9c/class____Vect2.html">__Vect2</a>&lt; long &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d11/class____Injector.html#af77a69bb48ddf567a7bf0bee02cd9ffb">position</a></td></tr>
<tr class="memdesc:af77a69bb48ddf567a7bf0bee02cd9ffb"><td class="mdescLeft">&#160;</td><td class="mdescRight">枪的中心位置 <br /></td></tr>
<tr class="separator:af77a69bb48ddf567a7bf0bee02cd9ffb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e2e93fb02efca4f2cb4a0d5afb56c8a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1e2e93fb02efca4f2cb4a0d5afb56c8a"></a>
<a class="el" href="../../d6/d9c/class____Vect2.html">__Vect2</a>&lt; double &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d11/class____Injector.html#a1e2e93fb02efca4f2cb4a0d5afb56c8a">gps</a></td></tr>
<tr class="memdesc:a1e2e93fb02efca4f2cb4a0d5afb56c8a"><td class="mdescLeft">&#160;</td><td class="mdescRight">GPS of gun. <br /></td></tr>
<tr class="separator:a1e2e93fb02efca4f2cb4a0d5afb56c8a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf0d94bdf7f6bf59a56f9ad7335ee591"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaf0d94bdf7f6bf59a56f9ad7335ee591"></a>
<a class="el" href="../../da/d1a/class____Vect3.html">__Vect3</a>&lt; double &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d11/class____Injector.html#aaf0d94bdf7f6bf59a56f9ad7335ee591">velocity</a></td></tr>
<tr class="memdesc:aaf0d94bdf7f6bf59a56f9ad7335ee591"><td class="mdescLeft">&#160;</td><td class="mdescRight">束流速度 <br /></td></tr>
<tr class="separator:aaf0d94bdf7f6bf59a56f9ad7335ee591"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a50f2657e4e2d8fe60619f8c7b9f23a8c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a50f2657e4e2d8fe60619f8c7b9f23a8c"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d11/class____Injector.html#a50f2657e4e2d8fe60619f8c7b9f23a8c">length</a></td></tr>
<tr class="memdesc:a50f2657e4e2d8fe60619f8c7b9f23a8c"><td class="mdescLeft">&#160;</td><td class="mdescRight">束流横向宽度 <br /></td></tr>
<tr class="separator:a50f2657e4e2d8fe60619f8c7b9f23a8c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4848c52c3ab0b96e3ab6ec78f1956e4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa4848c52c3ab0b96e3ab6ec78f1956e4"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d11/class____Injector.html#aa4848c52c3ab0b96e3ab6ec78f1956e4">repetion</a></td></tr>
<tr class="memdesc:aa4848c52c3ab0b96e3ab6ec78f1956e4"><td class="mdescLeft">&#160;</td><td class="mdescRight">重复次数,目前美柚用 <br /></td></tr>
<tr class="separator:aa4848c52c3ab0b96e3ab6ec78f1956e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3463b30b920b35418ded0984fe8ae387"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3463b30b920b35418ded0984fe8ae387"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d11/class____Injector.html#a3463b30b920b35418ded0984fe8ae387">flux</a></td></tr>
<tr class="memdesc:a3463b30b920b35418ded0984fe8ae387"><td class="mdescLeft">&#160;</td><td class="mdescRight">束流,粒子数/立方米/s <br /></td></tr>
<tr class="separator:a3463b30b920b35418ded0984fe8ae387"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ecfae6ba4e8efc87b3ff5d3f20d3836"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4ecfae6ba4e8efc87b3ff5d3f20d3836"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d11/class____Injector.html#a4ecfae6ba4e8efc87b3ff5d3f20d3836">dx</a></td></tr>
<tr class="memdesc:a4ecfae6ba4e8efc87b3ff5d3f20d3836"><td class="mdescLeft">&#160;</td><td class="mdescRight">网格的x,y方向的宽度 <br /></td></tr>
<tr class="separator:a4ecfae6ba4e8efc87b3ff5d3f20d3836"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a924526fe6b36e7ffe221c5a269bb8358"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a924526fe6b36e7ffe221c5a269bb8358"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><b>dy</b></td></tr>
<tr class="separator:a924526fe6b36e7ffe221c5a269bb8358"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a92a9bdb86b5d437c638e06508d8c9fa6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a92a9bdb86b5d437c638e06508d8c9fa6"></a>
long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d11/class____Injector.html#a92a9bdb86b5d437c638e06508d8c9fa6">diameter</a></td></tr>
<tr class="memdesc:a92a9bdb86b5d437c638e06508d8c9fa6"><td class="mdescLeft">&#160;</td><td class="mdescRight">束流横向所占网格数 <br /></td></tr>
<tr class="separator:a92a9bdb86b5d437c638e06508d8c9fa6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a766d44b1386fd4f010f0bd43f36f3ad0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a766d44b1386fd4f010f0bd43f36f3ad0"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d11/class____Injector.html#a766d44b1386fd4f010f0bd43f36f3ad0">energy</a></td></tr>
<tr class="memdesc:a766d44b1386fd4f010f0bd43f36f3ad0"><td class="mdescLeft">&#160;</td><td class="mdescRight">单个粒子能量,j <br /></td></tr>
<tr class="separator:a766d44b1386fd4f010f0bd43f36f3ad0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c049ee41a130898e724da94f449ee2c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4c049ee41a130898e724da94f449ee2c"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d11/class____Injector.html#a4c049ee41a130898e724da94f449ee2c">charge</a></td></tr>
<tr class="memdesc:a4c049ee41a130898e724da94f449ee2c"><td class="mdescLeft">&#160;</td><td class="mdescRight">粒子电荷 <br /></td></tr>
<tr class="separator:a4c049ee41a130898e724da94f449ee2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afdfbc1a91bff64ae7d72ae5cf5d66523"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afdfbc1a91bff64ae7d72ae5cf5d66523"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d11/class____Injector.html#afdfbc1a91bff64ae7d72ae5cf5d66523">mass</a></td></tr>
<tr class="memdesc:afdfbc1a91bff64ae7d72ae5cf5d66523"><td class="mdescLeft">&#160;</td><td class="mdescRight">粒子质量 <br /></td></tr>
<tr class="separator:afdfbc1a91bff64ae7d72ae5cf5d66523"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a648d24d44961e7a00296d743b155574c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a648d24d44961e7a00296d743b155574c"></a>
long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d11/class____Injector.html#a648d24d44961e7a00296d743b155574c">total</a></td></tr>
<tr class="memdesc:a648d24d44961e7a00296d743b155574c"><td class="mdescLeft">&#160;</td><td class="mdescRight">入射宏粒子总数 <br /></td></tr>
<tr class="separator:a648d24d44961e7a00296d743b155574c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab60f580734f6773a8c0a1c89772b4fd4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab60f580734f6773a8c0a1c89772b4fd4"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d11/class____Injector.html#ab60f580734f6773a8c0a1c89772b4fd4">lorentz_gamma</a></td></tr>
<tr class="memdesc:ab60f580734f6773a8c0a1c89772b4fd4"><td class="mdescLeft">&#160;</td><td class="mdescRight">粒子的gamma因子 <br /></td></tr>
<tr class="separator:ab60f580734f6773a8c0a1c89772b4fd4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:a904426b2cee84aa9f4fa90f8af6d443d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a904426b2cee84aa9f4fa90f8af6d443d"></a>
static long &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d11/class____Injector.html#a904426b2cee84aa9f4fa90f8af6d443d">pid</a> = <a class="el" href="../../d9/ddf/class____Ptcls.html#ae27fae8bcdf7b0f95d60931480a149d4">__Ptcls::total_id</a></td></tr>
<tr class="memdesc:a904426b2cee84aa9f4fa90f8af6d443d"><td class="mdescLeft">&#160;</td><td class="mdescRight">初始粒子的id <br /></td></tr>
<tr class="separator:a904426b2cee84aa9f4fa90f8af6d443d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>粒子入射枪,可以指定粒子种类,和入射位置,目前尽采用四方形束流,以后会有更多的如高斯型等. </p>
</div><hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="../../d8/d94/injector_8h_source.html">injector.h</a></li>
<li>main.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Jun 16 2015 22:48:37 for hybridMPIC by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
